/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.grouprecord.entity;

import com.jeeplus.modules.sessions.entity.Sessions;
import com.jeeplus.modules.member.entity.Member;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 拼团记录Entity
 * @author w
 * @version 2021-01-26
 */
public class GroupRecord extends DataEntity<GroupRecord> {
	
	private static final long serialVersionUID = 1L;
	private Integer percentNo;		// 当前期数
	private Sessions sessions;		// 分区
	private Member member;		// 中奖用户
	private String prizeStatus;		// 是否开奖（0否1是）
	private String groupStatus;		// 是否成团（0否1是）
	private Date groupDate;		// 成团时间
	private String orderNo;		// 编号
	private Date beginGroupDate;		// 开始 成团时间
	private Date endGroupDate;		// 结束 成团时间
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private String isEnd;  //是否结束（0否1是）
	private Member secondMember;   //第二中奖用户

	//前端幸运星获取列表展示用   时间
	private String starTime;
	
	public GroupRecord() {
		super();
	}

	public GroupRecord(String id){
		super(id);
	}

	@ExcelField(title="当前期数", align=2, sort=1)
	public Integer getPercentNo() {
		return percentNo;
	}

	public void setPercentNo(Integer percentNo) {
		this.percentNo = percentNo;
	}
	
	@ExcelField(title="分区", fieldType=Sessions.class, value="sessions.sessionsName", align=2, sort=2)
	public Sessions getSessions() {
		return sessions;
	}

	public void setSessions(Sessions sessions) {
		this.sessions = sessions;
	}
	
	@ExcelField(title="中奖用户", fieldType=Member.class, value="member.loginName", align=2, sort=3)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="是否开奖（0否1是）", dictType="yes_no", align=2, sort=4)
	public String getPrizeStatus() {
		return prizeStatus;
	}

	public void setPrizeStatus(String prizeStatus) {
		this.prizeStatus = prizeStatus;
	}
	
	@ExcelField(title="是否成团（0否1是）", dictType="yes_no", align=2, sort=5)
	public String getGroupStatus() {
		return groupStatus;
	}

	public void setGroupStatus(String groupStatus) {
		this.groupStatus = groupStatus;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="成团时间", align=2, sort=6)
	public Date getGroupDate() {
		return groupDate;
	}

	public void setGroupDate(Date groupDate) {
		this.groupDate = groupDate;
	}
	
	@ExcelField(title="编号", align=2, sort=13)
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	public Date getBeginGroupDate() {
		return beginGroupDate;
	}

	public void setBeginGroupDate(Date beginGroupDate) {
		this.beginGroupDate = beginGroupDate;
	}
	
	public Date getEndGroupDate() {
		return endGroupDate;
	}

	public void setEndGroupDate(Date endGroupDate) {
		this.endGroupDate = endGroupDate;
	}
		
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}

	@ExcelField(title="是否结束（0否1是）", dictType="yes_no", align=2, sort=5)
	public String getIsEnd() {
		return isEnd;
	}

	public void setIsEnd(String isEnd) {
		this.isEnd = isEnd;
	}

	public String getStarTime() {
		return starTime;
	}

	public void setStarTime(String starTime) {
		this.starTime = starTime;
	}

	public Member getSecondMember() {
		return secondMember;
	}

	public void setSecondMember(Member secondMember) {
		this.secondMember = secondMember;
	}
}